<?php
	

	session_start();	
	if(!$_SESSION['login_user']){
		header("location: ../pages/login.php");
	}
	
	include_once '../appcontroller.php';
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Type" content="text/html;" />
		<meta name="viewport" content="width=device-width, initial-scale=1"/>
			
		<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
		<link rel="stylesheet" href="../css/jquery.mobile.pagination.css"></link>
		<link href="../css/style.css" rel="stylesheet" type="text/css" ></link>
		
		<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.js"></script>
		
		
		<script src="../lib/jquery.mobile.pagination.js"></script>
		<script src="../lib/pathways.js"></script>
	
		<title>Slide 1</title>
	
	</head>

	<body onload="getRisposta();">
	
		<div id="container">
			
			<div data-role="header" data-theme="c">
			  <h1>Slide 1</h1>
			  <a onclick="logout();" data-icon="arrow-l" class="ui-btn-left">Esci</a>
			  <?php 
			  	if($_SESSION['admin']){
					print '<a onclick="openStatisctiche();" data-icon="gear" data-iconpos="right" class="ui-btn-right">Pannelo di controllo</a>';
				}
			  ?>
			</div>
			
			<center>
				<b style="color: red;" id="error"><?php echo $error ; ?></b>
			</center>
			
			<div id="main" data-role="content">
				
				<form method="post" data-theme="c" id="form_domande" data-ajax="false">
					
					<h2 class="title2"></h2>
	                                                
					<table width="100%" cellpadding="5px">
						<tr>
							<td>
								<img src="../img/donna.png" width="120px" />
							</td>
							<td >
								<div class="title">
									<h4>
										Si presenta in  ambulatorio una paziente di 32 anni con 
										i seguenti dati clinico-laboratoristici ... a cosa pensate?
									</h4>
								</div>
								<br/>
								<div>
									<b>Gastrina = 1230 pg/ml</b><br/>
									<b>CgA = 87 U/L</b><br/>
									<b>DIARREA</b><br/>
									<b>PESANTEZZA POST-PRANDIALE</b>
								</div>
							</td>
						</tr>
					</table>
					
					
					<div class="box_domande">
						<input type="hidden" name="page" id="page" value="1" />
						
						<table cellpadding="5px" width="65%" >
							<tr>
								<td>
									<label>
										<input type="checkbox" id="risp1"  name="risp1" <?php echo isChecked($risp1); ?> />
										TUMORE ENDOCRINO IN MEN 1
									</label>
								</td>
							</tr>
						</table>
						
						<table cellpadding="5px" width="65%">
							<tr>
								<td>
									<label>
										<input type="checkbox" id="risp2" name="risp2" <?php echo isChecked($risp2); ?> />
										GASTRINOMA
									</label>
								</td>
							</tr>
						</table>
						
						<table cellpadding="5px" width="65%">
							<tr>
								<td>
									<label>
										<input type="checkbox" id="risp3" name="risp3" <?php echo isChecked($risp3); ?> />
										GASTRITE CRONICA ATROFICA
									</label>
								</td>
							</tr>
						</table>
						
						<table cellpadding="5px" width="65%">
							<tr>
								<td>
									<label>
										<input type="checkbox" id="risp4" name="risp4" <?php echo isChecked($risp4); ?> />
										INSUFFICIENZA RENALE CRONICA
									</label>
								</td>
							</tr>
						</table>
						
						<table cellpadding="5px" width="65%">
							<tr>
								<td>
									<label>
										<input type="checkbox" id="risp5" name="risp5" <?php echo isChecked($risp5); ?> />
										TERAPIA CON PPI
									</label>
								</td>
							</tr>
						</table>
						
						<table cellpadding="5px" width="65%">
							<tr>
								<td>
									<div data-role="collapsible" id="box_nota" >
									    <h4>Note</h4>
				    					<textarea cols="40" rows="8" name="nota" id="nota"></textarea>
									</div>
								</td>
							</tr>
						</table>
						
						
						
					</div> <!-- Fine box domande -->
					
						
				</form>
					
			</div>
			
			<ul data-role="pagination">
				<li class="ui-pagination-next"><a onclick="forward();">Next</a></li>
			</ul>
					
		</div>
	</body>

</html>